-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File tree maxdepth #587
base: main
Are you sure you want to change the base?
File tree maxdepth #587
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #587 +/- ##
==========================================
+ Coverage 70.97% 71.76% +0.78%
==========================================
Files 161 175 +14
Lines 10776 12111 +1335
==========================================
+ Hits 7648 8691 +1043
- Misses 2949 3205 +256
- Partials 179 215 +36 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple thoughts then it should be good to go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
Not working on windows.
if isinstance(depth, str) and not depth.lstrip("-").isdigit(): | ||
print("ERROR: Invalid depth specified, must be a valid number") | ||
return | ||
depth=int(depth) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seem redundant with the above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean redundant? -1 is not handled properly by the is digit function. This also gracefully exits rather than just crashing
What type of PR is this?
/kind bug
/kind feature
What this PR does / why we need it:
Add permissions check to the file tree tome so it does not crash when encountering an unreadable directory